Skip to main content
This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal

Notes/Domino 6 and 7 Forum

Notes/Domino 6 and 7 Forum


  

PreviousPrevious NextNext

RE: trapping background image size
~Kirk Nimweplopoopsi 20.Nov.03 04:36 PM a Web browser
Domino Designer 6.0.1 CF2 All Platforms


I have put this code into the querysave event and it works but only once the document has already been saved. Is there a way to amend it so that the document can't be saved if the background is too big ?

Thanks
Paul

Sub Querysave(Source As Notesuidocument, Continue As Variant)
Dim workspace As New NotesUIWorkspace
Dim uidoc As NotesUIDocument
Set uidoc = workspace.CurrentDocument
Dim doc As notesdocument
Set doc = uidoc.Document
Dim item As notesitem
If doc.HasItem("$Background") Or doc.HasItem("$BackgroundR5") Then
If doc.HasItem("$Background") Then
Set item = doc.GetFirstItem("$Background")
Msgbox(item.ValueLength)
End If
If doc.HasItem("$BackgroundR5") Then
Set item = doc.GetFirstItem("$BackgroundR5")
Msgbox(item.ValueLength)
End If
End If
End Sub




trapping background image size (~Kirk Nimweplop... 13.Nov.03)
. . RE: trapping background image size (~Bill Frokimari... 16.Nov.03)
. . . . RE: trapping background image size (~Kirk Nimweplop... 20.Nov.03)
. . . . . . RE: trapping background image size (~Bill Frokimari... 20.Nov.03)
. . . . . . Set: Continue = False i.e. (~Dan Elhipister... 20.Nov.03)


Document Options






  Document options
Print this pagePrint this page

Search this forum

Forum views and search


  Forum views and search
Date (threaded)
Date (flat)
With excerpt
Category
Platform
Release
Advanced search

Member Tools


RSS Feeds

 RSS feedsRSS
All forum posts RSS
All main topics RSS